<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.*" %>
<%@ page import="com.dd.*" %>
<%@ page import="java.util.ArrayList" %>

<%@ include file="global.jsp" %>
<%@ include file="header.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%
    String title = "项目概览";
    String[][] breadcrumbs = {
        {"主页面", "main.jsp"},
        {title, "#"}
    };
    StringBuffer pageGuide = new StringBuffer();
    for (int i=0; i<breadcrumbs.length; i++){
      for(int j=0; j<breadcrumbs[i].length; j++){
          pageGuide.append(breadcrumbs[i][j]+"@");
      }
    }
    XiangMu xmAllXiangMu = new XiangMu();
    ArrayList AllXiangmus = null;
    int nCount = 0;
    if(xmAllXiangMu != null)
    {
    	AllXiangmus = xmAllXiangMu.GetAllXiangMus();
    	if(AllXiangmus != null)
    	{
    		nCount = AllXiangmus.size();
    	}
    }

%>

<jsp:include page="title.jsp" flush="true">
   <jsp:param name="title" value="<%=title%>" />
   <jsp:param name="pageGuide" value="<%=pageGuide%>" />
</jsp:include>


<p />

<h3>显示项目列表:</h3>

 <table  align="center">
                   <tr>
                    <td width="20%"  bgcolor="#6CB8C6">项目名称</td>
                     <td width="18%"  bgcolor="#6CB8C6">项目所属</td>
                      <td width="12%" bgcolor="#6CB8C6">项目缩写</td>
                      <td width="10%" bgcolor="#6CB8C6">待审批表单数目</td>
                      <td width="10%" bgcolor="#6CB8C6">审批通过的表单数目</td>  
                      <td width="10%" bgcolor="#6CB8C6">审批被拒绝的表单数目</td>
                      <td width="10%" bgcolor="#6CB8C6">总的表单数</td>
                      <td width="10%" bgcolor="#6CB8C6">项目的状态</td> 
                          
                    </tr>   
                    <%
                    	if(nCount > 0)
                    	{
                    	 	Iterator it = AllXiangmus.iterator();
                    	 	while(it.hasNext())
                    	 	{
                    	 		Map m_mx = (Map)it.next();
                    	 		
                    	 		if(m_mx != null)
                    	 		{
                    	 			int xiangMuShiYeBuID = ( (Integer)m_mx.get("XiangMuShiYeBuID") ).intValue();
                    	 			XiangMuShiYeBu xSY = new XiangMuShiYeBu(xiangMuShiYeBuID);
                    %>       
                    <tr>
                      <td bgcolor="#ECE9D8"><%=m_mx.get("MingCheng")%></td>
                      <td bgcolor="#ECE9D8"><%=xSY.getShiYeBuMingCheng()%></td>
                      <td bgcolor="#ECE9D8"><%=m_mx.get("JianCheng")%></td>
                      <td bgcolor="#ECE9D8"><%=m_mx.get("DengDaiShenPiShuMu")%></td>
                      <td bgcolor="#ECE9D8"><%=m_mx.get("ShenPiTongGuoShuMu") %></td>   
                      <td bgcolor="#ECE9D8"><%=m_mx.get("ShenPiJuJueShuMu")%></td>
                      <td bgcolor="#ECE9D8"><%=m_mx.get("ShenPiZhongShuMu")%></td>
                      <td bgcolor="#ECE9D8"><%=m_mx.get("ZhuangTai")%></td>                                
                    </tr>
                    <%
                    	 		}
                    	 	}
                    	}
                    %>


                  </table>

<jsp:include page="include/footer.jsp" flush="true"/>
